|
|
|
|
|
|
|
Figure 16.2.
The data entry form for Table 1. |
|
|
|
|
|
|
|
|
Rule 1
Eliminate Repeating Groups |
|
|
|
|
|
|
|
|
The first area in which Table1 needs some work is in the repeating skill fields. Why include columns in the data table called SkillCode1, SkillCode2, SkillCode3, or SkillName1, SkillName2, SkillName3, and so forth? You want to be able to store more than one set of skills for an employee, right? But what if you want to store data on more than three skills acquired by a single employee? What if most of the employees only have one or two skills, and very few have three skills? Why waste the blank space for the third skill? Even more vexing, how easy will it be to locate all employees in the data table that have a particular skill? |
|
|
|
|
| |
|
|
|
|
The first rule of data normalization states that you should make a separate table for each set of related columns and give each table a primary key. Databases that adhere to this first rule of normalization are said to be in the First Normal Form. |
|
|
|
|
|
|
|
|
|
|
The first rule of data normalization is to eliminate repeating groups of data in a data table. Repeating groups of data, such as the skill fields (SkillCodeX, SkillNameX, SkillDeptIDX, and SkillLevelX), usually indicates the need for an additional table. Creating the related table greatly improves readability and allows you to keep as few or as many skill sets for each employee as you need without wasting storage space. |
|
|
|
|
|